package com.zzyl.utils;

import lombok.extern.slf4j.Slf4j;

/**
 * 本地线程维护工具
 */
@Slf4j
public class ThreadLocalUtil {
	//本地线程
	private static final ThreadLocal<Long> threadLocal =  new ThreadLocal<>();
	
    public static  Long get(){
		return threadLocal.get();
	}
	public static void set(Long id){
		threadLocal.set(id);
	}
	public static void remove(){
		threadLocal.remove();
	}
}
